/*清除浏览器的默认样式*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.nav{
    /*导航栏高度一般都是50px*/
    height: 50px;
    background-color: rgba(50,50,50,0.4);
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.nav img{
    height: 40px;
    width: 40px;
    margin-left: 30px;
    margin-right: 10px;
    border-radius: 20px;
}
.nav .spacer{
    /*宽度设成百分比是以父元素为基准*/
    width: 70%;
}
.nav a{
    color: white;
    text-decoration: none;
    padding: 0 10px;
}

body{
    /*设置让body跟html的高度一样高*/
    height: 100%;
    background-image:url(D:\Git\java\JavaSenior\blog_system\src\main\resources\img\99765590_p0.jpg);
    background-position:center center;
    background-repeat:no-repeat;
    background-size: cover;

}
html{
    /*设置让html的高度和浏览器一样高*/
    height: 100%;
}
.container{
    width:1000px;
    /*水平居中*/
    margin:0 auto;
    /*设置高度*/
    height: calc(100% - 50px);
    /*为了让left和right水平方向排列*/
    display: flex;
    justify-content: space-between;
}
.container .container-left{
    height:100%;
    width: 200px;
}
.container .container-right{
    height: 100%;
    width: 796px;
    background-color: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 25px;
    /*内容超过范围自动添加滚动条*/
    overflow: auto;
}
.card{
    background-color: rgba(255,255,255,0.8);
    /*设置内边距，让文字和图片不顶边界*/
    padding: 30px;
    border-radius: 25px;
}
.card img{
    width: 140px;
    height: 140px;
    border-radius: 70px ;
}
.card h3{
    text-align: center;
    padding: 10px;
}
.card a{
    text-align: center;
    color:gray;
    text-decoration: none;
    /*a默认是行内元素，默认尺寸和内容是一样的*/
    display: block;
    padding: 10px 0;
}
.card .counter{
    display: flex;
    justify-content: space-around;
    padding:5px;
}